package cn.zebra.dev.product.module.category.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
@TableName("category")
public class CategoryEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private Integer levelType;

    private Integer categoryType;

    @TableField(exist = false)
    private String parentName;

    private String categoryName;

    private String categoryImage;

    private Integer sort;

    private Boolean showFlag;

    private Boolean deleteFlag;

    private Long createId;

    private LocalDateTime createTime;

    private Long updateId;

    private LocalDateTime updateTime;

}
